import { createApp, App } from 'vue'
import router from '@/router'
import AppPage from './App.vue'
import './index.scss'

const app = createApp(AppPage)

const useComponent = (app: App<Element>) => {
  app.component('CCImage', () => import('@/components/CCImage/index.vue'))
}

const usePlugins = (app: App<Element>) => {
  app.use(router)
}

useComponent(app)
usePlugins(app)

app.mount('#app')
